macro (add_application name)

PARSE_ARGUMENTS(ARG "SOURCES" "WIN32" ${ARGV})

if (ANDROID)
	add_library (${ARGV0} SHARED ${ARG_SOURCES})
else ()
	if (${ARG_WIN32})
		add_executable (${ARGV0} WIN32 ${ARG_SOURCES})
	else ()
		add_executable (${ARGV0} ${ARG_SOURCES})
	endif ()
endif ()

endmacro ()

macro (copy_post_build target file_path)
	add_custom_command (
		TARGET ${target}
		POST_BUILD
		COMMAND ${CMAKE_COMMAND} -E copy_if_different
		${file_path}
		${CMAKE_CURRENT_BINARY_DIR}/$<CONFIGURATION>/
	)

endmacro ()